package com.phiture.erp.basic.core.pojo.dto;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author YH
 * @date 2025/4/2
 */

@Schema(description = "管理后台 - 物料采购属性分页 Request DTO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ErpMaterialPurchasingPageReqDTO extends PageParam {
    @Schema(description = "采购资料状态(0:未核准 1:核准 2:禁用 3:已删除)", example = "2")
    private Integer status;

    @Schema(description = "物料", example = "6428")
    private Long materialId;

    @Schema(description = "采购员", example = "26161")
    private Long purPersonId;

    @Schema(description = "供应商", example = "5268")
    private Long supplierId;

    @Schema(description = "采购检验(0:不检验 1:抽检 2:全检)")
    private Integer purchaseCheckType;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;
}
